import time
from selenium.webdriver.common.by import By


def fill_form(driver, username, password, r_password):
    driver.find_element(By.ID, "username").clear()
    driver.find_element(By.ID, "username").send_keys(username)

    driver.find_element(By.ID, "password").clear()
    driver.find_element(By.ID, "password").send_keys(password)

    driver.find_element(By.ID, "repassword").clear()
    driver.find_element(By.ID, "repassword").send_keys(r_password)
    time.sleep(1)

    driver.find_element(By.ID, "login_btn").click()
    time.sleep(2)



